/*
 *  Copyright 2020-2021 Li Fei
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.pengshun.modules.api.coal.service;

import com.pengshun.modules.api.coal.para.CoalParam;
import com.pengshun.modules.api.coal.service.dto.CoalDto;
import com.pengshun.modules.common.BaseResult;


/**
 * @author lifei
 * @description 服务接口
 * @date 2020-11-06
 **/
public interface CoalService {


    /**
     * 查询矿口 煤矿 价格趋势
     *
     * @param param
     * @return
     * @throws Exception
     */
    BaseResult selectCoalPriceByMineMouthId(CoalParam param) throws Exception;

    /**
     * 查询煤炭详情
     *
     * @param coalId
     * @return
     */
    BaseResult selectCoalDetil(Long coalId);

    /**
     * 查询煤炭最近几年价格趋势
     *
     * @param form
     * @return
     */
    BaseResult selectCoalPriceByCoalId(CoalParam form) throws Exception;

    BaseResult save(CoalDto form) throws Exception;

    BaseResult update(CoalDto form)throws  Exception;

    /**
     * 查询煤矿 煤炭种类
     * @param para
     * @return
     */
    BaseResult selectCoalCode(CoalParam para);

    /**
     * 查询煤炭K 线图
     * @param coalId
     * @return
     */
    BaseResult selectCoalKline(CoalParam coalId);

    /**
     * 查询煤炭折线图
     * @param form
     * @return
     */
    BaseResult selectCoalBrokenLine(CoalParam form);

    /**
     * 查询煤炭分类
     * @return
     */
    BaseResult selectCoalCategory();
}